import http from '@/plugins/axios'

/**
 * 获取续费记录
 * @param data 
 * @returns 
 */
export function getRenewManageList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/getRenewManageList',
        data
    })
}

/**
 * 根据批次ID获取收款记录
 * @param data 
 * @returns 
 */
export function getRenewShouList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/getRenewShouList',
        data
    })
}

/**
 * 
 * @param dictNo 提交收款信息
 * @returns 
 */
export function postSkList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/postSkList',
        data
    })
}

/**
 * 根据批次ID获取退款记录
 * @param data 
 * @returns 
 */
export function getRenewTuiList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/getRenewTuiList',
        data
    })
}

/**
 * 
 * @param 提交退款信息
 * @returns 
 */
export function postTkList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/postTkList',
        data
    })
}

/**
 * 
 * @param 根据收费模式(分组)以及客户ID查询本次续费的业务数据
 * @returns 
 */
export function getXfywListBySfmsValAndCustomerId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/getXfywListBySfmsValAndCustomerId',
        data
    })
}

/**
 * 
 * @param 提交续费信息
 * @returns 
 */
export function postXfList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManage/postXfList',
        data
    })
}

/**
 * 
 * @param dictNo 获取字典数据
 * @returns 
 */
export function getDictInfo(dictNo) {
    return http({
        method: 'POST',
        url: '/ykf/dictDetail/listByNo',
        data: { dictNo: dictNo }
    })
}

/**
 * 
 * @param 根据客户ID获取该客户的发票
 * @returns 
 */
export function getFpListByCustomerId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/getFpListByCustomerId',
        data
    })
}